package com.share.example.stock.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.example.stock.model.db.TradeDate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author author
 * @since 2023-07-18
 */
public interface TradeDateMapper extends BaseMapper<TradeDate> {

    int insertbatch(@Param("list") List<TradeDate> list);

    int deleteRepeatRetainMinId();

    int appendCodeByDate(@Param("code") String code, @Param("list") List<String> list);

    int updateByDate(@Param("record") TradeDate record);
}
